package com.yiding.sys.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yiding.sys.pojo.SysUser;

/**
 * @author War horse imwarhorse@aliyun.com
 * Date: 2020/8/7
 * Description: No Description
 */

public interface SysUserService extends IService<SysUser> {

	Boolean login(String username, String password);

	/**
	 * 新建用户
	 *
	 * @param user 用户对象
	 * @return 操作结果。true成功；false失败
	 */
	Boolean addUser(SysUser user);

	SysUser getUserByUsername(String username);

}
